package com.laoyao.validate;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class LunbotuValidate extends Validator {

	@Override
	protected void validate(Controller c) {

		setShortCircuit(true);
		validateRequired("src", "msg", "图片不能为空");
		
		
	}

	@Override
	protected void handleError(Controller c) {
		c.renderJson();		
	}

}
